  /**
   * Generate time : 2016-04-26 13:35:13
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNCcy 
 * table comment : 内部抽查样数据 
 */
public class ZMCNCcy extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdReportTime = " ";		/* 汇报时间*/
	private String fdReportPerson = " ";		/* 汇报人*/
	private String fdReportDepartmentId = " ";		/* 汇报部门ID*/
	private String fdReportDepartment = " ";		/* 汇报部门*/
	private String fdYear = " ";		/* 年份*/
	private String fdMonth = " ";		/* 月份*/
	private String fdCjnr = " ";		/* 抽检内容*/
	private String fdBjdw = " ";		/* 被检单位*/
	private String fdMyNum = " ";		/* 煤样编码*/
	private String fdDbsl = " ";		/* 代表数量*/
	private BigDecimal fdMyMad = new BigDecimal("0");		/* 水分Mad(%)*/
	private BigDecimal fdMySt = new BigDecimal("0");		/* 硫分St,d(%)*/
	private BigDecimal fdMyQgr = new BigDecimal("0");		/* 发热量Qgr.v.d(MJ/kg)*/
	private BigDecimal fdMyAd = new BigDecimal("0");		/* 灰分Ad(%)*/
	private BigDecimal fdCjMad = new BigDecimal("0");		/* 抽检水分Mad(%)*/
	private BigDecimal fdCjAd = new BigDecimal("0");		/* 抽检灰分Ad(%)*/
	private BigDecimal fdCjSt = new BigDecimal("0");		/* 抽检硫分St,d(%)*/
	private BigDecimal fdCjQgr = new BigDecimal("0");		/* 抽检发热量Qgr.v.d(MJ/kg)*/
	private BigDecimal fdCzAd = new BigDecimal("0");		/* 差值灰分Ad(%)*/
	private BigDecimal fdCzSt = new BigDecimal("0");		/* 差值硫分St,d(%)*/
	private BigDecimal fdCzQgr = new BigDecimal("0");		/* 差值发热量Qgr.v.d(MJ/kg)*/
	private String fdRemark = " ";		/* 备注*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportPerson");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("汇报部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonth");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCjnr");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("抽检内容");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBjdw");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("被检单位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyNum");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDbsl");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("代表数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyMad");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("水分Mad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMySt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("硫分St,d(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQgr");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qgr.v.d(MJ/kg)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyAd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("灰分Ad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCjMad");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("抽检水分Mad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCjAd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("抽检灰分Ad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCjSt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("抽检硫分St,d(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCjQgr");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("抽检发热量Qgr.v.d(MJ/kg)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCzAd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("差值灰分Ad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCzSt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("差值硫分St,d(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCzQgr");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("差值发热量Qgr.v.d(MJ/kg)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCNCcy() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdReportTime - 汇报时间
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}
	
	/**
	 * set the fdReportTime - 汇报时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}
	/**
	 * get the fdReportPerson - 汇报人
	 * @return the fdReportPerson
	 */
	public String getFdReportPerson() {
		return this.fdReportPerson;
	}
	
	/**
	 * set the fdReportPerson - 汇报人
	 */
	public void setFdReportPerson(String fdReportPerson) {
		this.fdReportPerson = fdReportPerson;
	}
	/**
	 * get the fdReportDepartmentId - 汇报部门ID
	 * @return the fdReportDepartmentId
	 */
	public String getFdReportDepartmentId() {
		return this.fdReportDepartmentId;
	}
	
	/**
	 * set the fdReportDepartmentId - 汇报部门ID
	 */
	public void setFdReportDepartmentId(String fdReportDepartmentId) {
		this.fdReportDepartmentId = fdReportDepartmentId;
	}
	/**
	 * get the fdReportDepartment - 汇报部门
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}
	
	/**
	 * set the fdReportDepartment - 汇报部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}
	/**
	 * get the fdYear - 年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	/**
	 * get the fdMonth - 月份
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}
	
	/**
	 * set the fdMonth - 月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}
	/**
	 * get the fdCjnr - 抽检内容
	 * @return the fdCjnr
	 */
	public String getFdCjnr() {
		return this.fdCjnr;
	}
	
	/**
	 * set the fdCjnr - 抽检内容
	 */
	public void setFdCjnr(String fdCjnr) {
		this.fdCjnr = fdCjnr;
	}
	/**
	 * get the fdBjdw - 被检单位
	 * @return the fdBjdw
	 */
	public String getFdBjdw() {
		return this.fdBjdw;
	}
	
	/**
	 * set the fdBjdw - 被检单位
	 */
	public void setFdBjdw(String fdBjdw) {
		this.fdBjdw = fdBjdw;
	}
	/**
	 * get the fdMyNum - 煤样编码
	 * @return the fdMyNum
	 */
	public String getFdMyNum() {
		return this.fdMyNum;
	}
	
	/**
	 * set the fdMyNum - 煤样编码
	 */
	public void setFdMyNum(String fdMyNum) {
		this.fdMyNum = fdMyNum;
	}
	/**
	 * get the fdDbsl - 代表数量
	 * @return the fdDbsl
	 */
	public String getFdDbsl() {
		return this.fdDbsl;
	}
	
	/**
	 * set the fdDbsl - 代表数量
	 */
	public void setFdDbsl(String fdDbsl) {
		this.fdDbsl = fdDbsl;
	}
	/**
	 * get the fdMyMad - 水分Mad(%)
	 * @return the fdMyMad
	 */
	public BigDecimal getFdMyMad() {
		return this.fdMyMad;
	}
	
	/**
	 * set the fdMyMad - 水分Mad(%)
	 */
	public void setFdMyMad(BigDecimal fdMyMad) {
		this.fdMyMad = fdMyMad;
	}
	/**
	 * get the fdMySt - 硫分St,d(%)
	 * @return the fdMySt
	 */
	public BigDecimal getFdMySt() {
		return this.fdMySt;
	}
	
	/**
	 * set the fdMySt - 硫分St,d(%)
	 */
	public void setFdMySt(BigDecimal fdMySt) {
		this.fdMySt = fdMySt;
	}
	/**
	 * get the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 * @return the fdMyQgr
	 */
	public BigDecimal getFdMyQgr() {
		return this.fdMyQgr;
	}
	
	/**
	 * set the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 */
	public void setFdMyQgr(BigDecimal fdMyQgr) {
		this.fdMyQgr = fdMyQgr;
	}
	/**
	 * get the fdMyAd - 灰分Ad(%)
	 * @return the fdMyAd
	 */
	public BigDecimal getFdMyAd() {
		return this.fdMyAd;
	}
	
	/**
	 * set the fdMyAd - 灰分Ad(%)
	 */
	public void setFdMyAd(BigDecimal fdMyAd) {
		this.fdMyAd = fdMyAd;
	}
	/**
	 * get the fdCjMad - 抽检水分Mad(%)
	 * @return the fdCjMad
	 */
	public BigDecimal getFdCjMad() {
		return this.fdCjMad;
	}
	
	/**
	 * set the fdCjMad - 抽检水分Mad(%)
	 */
	public void setFdCjMad(BigDecimal fdCjMad) {
		this.fdCjMad = fdCjMad;
	}
	/**
	 * get the fdCjAd - 抽检灰分Ad(%)
	 * @return the fdCjAd
	 */
	public BigDecimal getFdCjAd() {
		return this.fdCjAd;
	}
	
	/**
	 * set the fdCjAd - 抽检灰分Ad(%)
	 */
	public void setFdCjAd(BigDecimal fdCjAd) {
		this.fdCjAd = fdCjAd;
	}
	/**
	 * get the fdCjSt - 抽检硫分St,d(%)
	 * @return the fdCjSt
	 */
	public BigDecimal getFdCjSt() {
		return this.fdCjSt;
	}
	
	/**
	 * set the fdCjSt - 抽检硫分St,d(%)
	 */
	public void setFdCjSt(BigDecimal fdCjSt) {
		this.fdCjSt = fdCjSt;
	}
	/**
	 * get the fdCjQgr - 抽检发热量Qgr.v.d(MJ/kg)
	 * @return the fdCjQgr
	 */
	public BigDecimal getFdCjQgr() {
		return this.fdCjQgr;
	}
	
	/**
	 * set the fdCjQgr - 抽检发热量Qgr.v.d(MJ/kg)
	 */
	public void setFdCjQgr(BigDecimal fdCjQgr) {
		this.fdCjQgr = fdCjQgr;
	}
	/**
	 * get the fdCzAd - 差值灰分Ad(%)
	 * @return the fdCzAd
	 */
	public BigDecimal getFdCzAd() {
		return this.fdCzAd;
	}
	
	/**
	 * set the fdCzAd - 差值灰分Ad(%)
	 */
	public void setFdCzAd(BigDecimal fdCzAd) {
		this.fdCzAd = fdCzAd;
	}
	/**
	 * get the fdCzSt - 差值硫分St,d(%)
	 * @return the fdCzSt
	 */
	public BigDecimal getFdCzSt() {
		return this.fdCzSt;
	}
	
	/**
	 * set the fdCzSt - 差值硫分St,d(%)
	 */
	public void setFdCzSt(BigDecimal fdCzSt) {
		this.fdCzSt = fdCzSt;
	}
	/**
	 * get the fdCzQgr - 差值发热量Qgr.v.d(MJ/kg)
	 * @return the fdCzQgr
	 */
	public BigDecimal getFdCzQgr() {
		return this.fdCzQgr;
	}
	
	/**
	 * set the fdCzQgr - 差值发热量Qgr.v.d(MJ/kg)
	 */
	public void setFdCzQgr(BigDecimal fdCzQgr) {
		this.fdCzQgr = fdCzQgr;
	}
	/**
	 * get the fdRemark - 备注
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
		setFdReportPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPerson")), fdReportPerson));
		setFdReportDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartmentId")), fdReportDepartmentId));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
		setFdCjnr(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCjnr")), fdCjnr));
		setFdBjdw(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBjdw")), fdBjdw));
		setFdMyNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyNum")), fdMyNum));
		setFdDbsl(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDbsl")), fdDbsl));
		setFdMyMad(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyMad")), fdMyMad));
		setFdMySt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMySt")), fdMySt));
		setFdMyQgr(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQgr")), fdMyQgr));
		setFdMyAd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyAd")), fdMyAd));
		setFdCjMad(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCjMad")), fdCjMad));
		setFdCjAd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCjAd")), fdCjAd));
		setFdCjSt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCjSt")), fdCjSt));
		setFdCjQgr(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCjQgr")), fdCjQgr));
		setFdCzAd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCzAd")), fdCzAd));
		setFdCzSt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCzSt")), fdCzSt));
		setFdCzQgr(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCzQgr")), fdCzQgr));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdReportTime",StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));	
			map.put("fdReportPerson",StringUtils.toString(fdReportPerson, eiMetadata.getMeta("fdReportPerson")));	
			map.put("fdReportDepartmentId",StringUtils.toString(fdReportDepartmentId, eiMetadata.getMeta("fdReportDepartmentId")));	
			map.put("fdReportDepartment",StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdMonth",StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));	
			map.put("fdCjnr",StringUtils.toString(fdCjnr, eiMetadata.getMeta("fdCjnr")));	
			map.put("fdBjdw",StringUtils.toString(fdBjdw, eiMetadata.getMeta("fdBjdw")));	
			map.put("fdMyNum",StringUtils.toString(fdMyNum, eiMetadata.getMeta("fdMyNum")));	
			map.put("fdDbsl",StringUtils.toString(fdDbsl, eiMetadata.getMeta("fdDbsl")));	
			map.put("fdMyMad",StringUtils.toString(fdMyMad, eiMetadata.getMeta("fdMyMad")));	
			map.put("fdMySt",StringUtils.toString(fdMySt, eiMetadata.getMeta("fdMySt")));	
			map.put("fdMyQgr",StringUtils.toString(fdMyQgr, eiMetadata.getMeta("fdMyQgr")));	
			map.put("fdMyAd",StringUtils.toString(fdMyAd, eiMetadata.getMeta("fdMyAd")));	
			map.put("fdCjMad",StringUtils.toString(fdCjMad, eiMetadata.getMeta("fdCjMad")));	
			map.put("fdCjAd",StringUtils.toString(fdCjAd, eiMetadata.getMeta("fdCjAd")));	
			map.put("fdCjSt",StringUtils.toString(fdCjSt, eiMetadata.getMeta("fdCjSt")));	
			map.put("fdCjQgr",StringUtils.toString(fdCjQgr, eiMetadata.getMeta("fdCjQgr")));	
			map.put("fdCzAd",StringUtils.toString(fdCzAd, eiMetadata.getMeta("fdCzAd")));	
			map.put("fdCzSt",StringUtils.toString(fdCzSt, eiMetadata.getMeta("fdCzSt")));	
			map.put("fdCzQgr",StringUtils.toString(fdCzQgr, eiMetadata.getMeta("fdCzQgr")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			
		return map;
	
	}
}